#include "form2_4.h"
#include "ui_form2_4.h"

Form2_4::Form2_4(QEventLoop &qel,int &s,QWidget *parent)
    :eventLoop(qel),
    select(s),
    QWidget(parent),
    ui(new Ui::Form2_4)
{
    ui->setupUi(this);
}

Form2_4::~Form2_4()
{
    delete ui;
}

void Form2_4::on_pushButton1_clicked()
{
    select=1;
    this->close();
    eventLoop.quit();
}


void Form2_4::on_pushButton2_clicked()
{
    select=2;
    this->close();
    eventLoop.quit();
}


void Form2_4::on_pushButton3_clicked()
{
    select=3;
    this->close();
    emit this->back();
    eventLoop.quit();
}

